import React, { Component } from 'react';
import '../../styles/Aheader.css'
import '../../font/iconfont.css'
import { withRouter } from 'react-router-dom';
class Cheader extends Component {
    
    gosearch(){
        this.props.history.push('/search')
    }
    render() {
        return (
            <div className='heade'>
                <div>
                <h3>分类</h3><i className='iconfont icon-sousuo1'></i>
                <input type="text" placeholder='搜索店铺内商品' onFocus={()=>{this.gosearch()}}/>
                </div>

            </div>
        );
    }
}

export default withRouter(Cheader);